package cn.edu.zjgsu.vo;

import cn.edu.zjgsu.model.Novel;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.persistence.Column;

/**
 * @author: wqmei
 * DateTime: 2017/11/10 14:39
 * Description:
 */
@Data
public class NovelInput
{

    private String novelName;

    private String content;

    private String category;

    public Novel convert()
    {
        Novel novel = new Novel();
        BeanUtils.copyProperties(this,novel);
        return novel;
    }
}
